﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Vmago.Models" %>

<table border="0" cellpadding="5" cellspacing="0" width="100%">
    <tr><th colspan="4" align="left" style=" background-color:#A2C6EC">&nbsp;&nbsp;&nbsp;评论</th></tr>
    <tr><td bgcolor="#D0CED1" colspan="4" /></tr>
<%
    foreach (ShopComment ShopComment in ((IEnumerable<ShopComment>)ViewData.Model))
    {
%>
    <tr>
        <td width="100"><%=(String.IsNullOrEmpty(ShopComment.userName) ? "游客" : ShopComment.userName) %></td>
        <td align="left"><%=Html.Encode(ShopComment.content) %></td>
        <td width="120" ><%=ShopComment.createDate %></td>
    </tr>
    <tr><td bgcolor="#D0CED1" colspan="3"/></tr>
<%
    }
%>    
</table>

<%using (Html.BeginForm())
  { %>
    <table>
        <tr>
            <td><%= Html.TextArea("BSS_Comment","",5,70,null) %></td>
            <td valign="top"><input type="submit" value="我要点评" /></td>
        </tr>
    </table>
<%} %>